package tool

import "net/http"

// 获取远端文件大小
func GetRemoteFileSize(remoteUrl string) int64 {
	header, err := http.Head(remoteUrl)
	if err != nil {
		return 0
	}
	return header.ContentLength
}
